export function getCookie (name, defaultValue) {
  let arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
  debugger
  if (arr = document.cookie.match(reg)) {
    return unescape(arr[2])
  } else {
    return defaultValue
  }
}